<?php
/**
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_2
 * @license    GNU/GPL
*/
 
// No direct access
 
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.view');
 
/**
 * HTML View class for the JobsWorld Component
 *
 * @package    JobsWorld
 */
 
class JobsViewJobDetailAdd extends JView
{
    function display($tpl = null)
    {
		global $mainframe, $option;
       // $model = &$this->getModel();
		
		$jobid =  JRequest::getVar( 'jid','','get' );  
		
		JModel::addIncludePath(JPATH_ROOT.'/components/com_jobs/models', 'myjobs');
		$items_job = JModel::getInstance( 'myjobs', 'JobsModel');
		
		$row = $items_job->getDetailJob($jobid);
		$row_pris = $items_job->getPrisJob($row->catid);
		$land = $items_job->getNameCityDanish($row->postcode);		
		$land1 = $items_job->getNameCityDanish($row->postcode1);
		$this->assignRef( 'row_pris',	$row_pris );
		$this->assignRef( 'row',	$row );
		$this->assignRef( 'land',	$land );
		$this->assignRef( 'land1',	$land1 );
		
        parent::display($tpl);
    }
}
?>